package com.wsd.jing.service;

import com.wsd.jing.entity.RolePermission;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wsd.jing.request.CommonRequest;

import java.util.List;
import java.util.Map;

/**
 * All rights Reserved, Designed By www.tom.com
 *
 * @author tom
 * @version 1.0.0
 * @projectName: jing
 * @packageName: com.wsd.jing.service
 * @className: IRolePermissionService
 * @description: RolePermission服务类
 * @createDate 2023-11-10 11:01
 * @copyright 2023-11-10 11:01 www.tom.com Inc. All rights reserved.
 */
public interface IRolePermissionService extends IService<RolePermission> {

    /**
     * @param rolePermission:RolePermission
     * @return Boolean
     * @author tom
     * @description 新增RolePermission
     * @createDate 2023-11-10 11:01
     */
    Boolean insertRolePermission(RolePermission rolePermission);

    /**
     * @param rolePermission:RolePermission
     * @return Boolean
     * @author tom
     * @description 修改RolePermission
     * @createDate 2023-11-10 11:01
     */
    Boolean updateRolePermission(RolePermission rolePermission);

    /**
     * @param id:id
     * @return Boolean
     * @author tom
     * @description 删除RolePermission
     * @createDate 2023-11-10 11:01
     */
    Boolean deleteRolePermission(Integer id);

    /**
     * @param ids:id
     * @return Boolean
     * @author tom
     * @description 批量删除RolePermission
     * @createDate 2023-11-10 11:01
     */
    Boolean deleteRolePermissions(String ids);

    /**
     * @param id:id
     * @return RolePermission
     * @author tom
     * @description 查询RolePermission
     * @createDate 2023-11-10 11:01
     */
    RolePermission getRolePermission(Integer id);

    /**
     * @param commonRequest:排序参数
     * @param rolePermission:RolePermission
     * @return List<RolePermission>
     * @author tom
     * @description 查询RolePermission列表
     * @createDate 2023-11-10 11:01
     */
    List<RolePermission> listRolePermissions(CommonRequest commonRequest, RolePermission rolePermission);

    /**
     * @param commonRequest:分页参数
     * @param rolePermission:RolePermission
     * @return Map<String, Object>
     * @author tom
     * @description 分页查询RolePermission列表
     * @createDate 2023-11-10 11:01
     */
    Map<String, Object> listPageRolePermissions(CommonRequest commonRequest, RolePermission rolePermission);
}
